package com.million.educenter.service;

import com.million.commonutils.orderVo.UcenterMemberVo;
import com.million.educenter.entity.UcenterMember;
import com.baomidou.mybatisplus.extension.service.IService;
import com.million.educenter.entity.params.vo.LoginParams;
import com.million.educenter.entity.params.vo.RegisterVo;

/**
 * <p>
 * 会员表 服务类
 * </p>
 *
 * @author 十麓
 * @since 2022-04-03
 */
public interface UcenterMemberService extends IService<UcenterMember> {

    //登录
    String loginUser (LoginParams loginParams);

    //注册
    void registerUser (RegisterVo registerVo);

    //根据openid 获取UcenterMember
    UcenterMember getMemberByOpenId (String openid);

    //根据用户id 查询用户信息
    UcenterMemberVo getMemberInfoById (String memberId);

    //根据创建时间查询注册人数
    Integer getRegisterUcenter (String day);
}
